<template>
  <div id="app">
    <Header></Header>
    <body>
      <router-view></router-view>
    </body>
    <!-- <Footer v-show="$route.path!='/login'&&$route.path!='/register'"></Footer> -->
    <Footer v-show="$route.meta.showfooter"></Footer>
  </div>
</template>

<script>
import Header from './components/Header/index.vue'
import Footer from './components/Footer/index.vue'
export default {
  name: 'App',
  data() {
    return {
      isshow:true
    }
  },
  components: {
    Header,
    Footer
  },
  beforeCreate() {
    this.$store.dispatch('categoryLists');
  },
}
</script>

<style>
/* #app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
} */
</style>
